﻿package 
{
	import flash.display.*;
	import flash.events.*;
	
	public class Wall extends MovieClip
	{
		public var wallRec:Shape;
		public var window:Graphics;
		public var door:Door;
		
		public function Wall()
		{
			//new wall reacangle
			wallRec = new Shape();
			wallRec.graphics.beginFill(0xFFCDFF); // choosing the colour for the fill  
			wallRec.graphics.drawRect(0, 0, 1600,317); // (x spacing, y spacing, width, height)   
			wallRec.graphics.endFill(); // not always needed but I like to put it in to end the fill
			
			//new windows graphics & door button
			door = new Door();
			
			//set coordination of Windows and Door
			door.x = 400;
			door.y = 200;
			door.width = 80;
			door.height = 120;
			
			//add windows and door into Wall MovieClip
			addChild(wallRec);
			addChild(door);
		}
		
	}
}
